package com.jqq.filter;

import javax.servlet.*;
import javax.servlet.annotation.WebFilter;
import java.io.IOException;

/**
 * @author 姬倩倩
 * @date 2023-05-12
 */

//@WebFilter(urlPatterns = "/*")
public class AbcFilter implements Filter {
    @Override
    public void doFilter(ServletRequest servletRequest, ServletResponse servletResponse, FilterChain filterChain) throws IOException, ServletException {
        System.out.println("Abc拦截到了请求...放行前逻辑");
        //放行
        filterChain.doFilter(servletRequest, servletResponse);

        System.out.println("Abc拦截到了请求...放行后逻辑");
    }
}
